package com.aspose.cells.a.d;

public abstract class zef {
   protected zdh e;
   protected String f;
   private int a;
   private int b = -1;

   public zef(zdh var1) throws Exception {
      this.e = var1;
      this.a = var1.a();
      if (this.o()) {
         this.f = this.r();
      }

   }

   public int m() {
      return this.a;
   }

   public String n() {
      return com.aspose.cells.b.a.zo.a(this.a) + " 0 R";
   }

   public boolean o() {
      return this.e_() != 0;
   }

   public String p() {
      return this.f;
   }

   public int e_() {
      return 0;
   }

   public int q() {
      return this.b;
   }

   public void b(int var1) {
      this.b = var1;
   }

   public abstract void a(zeg var1) throws Exception;

   public String r() throws Exception {
      if (!this.o()) {
         throw new Exception("Tried to generate a resource name not being a resource.");
      } else {
         return zes.c(this.e_()) + com.aspose.cells.b.a.zo.a(this.e.c().a(this.e_()) + 1);
      }
   }
}
